package com.workcell.workdata.xthings.mapper;

import com.workcell.workdata.common.data.datascope.WorkdataBaseMapper;
import com.workcell.workdata.xthings.entity.CodeTvBox;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 电视盒子
 *
 * @author guoyu
 * @date 2023-03-01 15:02:16
 */
@Mapper
public interface CodeTvBoxMapper extends WorkdataBaseMapper<CodeTvBox> {

    @Select("select rent_id from t_code_tv_box where chain_num=#{chainNum}")
    Long getBindRent(@Param("chainNum") String chainNum);
}
